***************************************************************************
** Readme for								 **
** War on Aisle 5: Casualties, National Identity, and Consumer Behavior  **
** Benjamin Helms, Sonal Pandya, and Rajkumar Venkatesan	         **
** January 19, 2024						         **
** Journal of Conflict Resolution				 	 **
***************************************************************************

**************
** Overview **
**************

This Readme file describes the contents of the replication archive to conduct all empirical analyses in the main text and Supplemental Information of War on Aisle 5: Casualties, National Identity, and Consumer Behavior.

All analysis was conducted using R version 4.3.2 on MacOS Sonoma version 14.0.

*******************
** Licensed Data **
*******************

This archive does not include two licensed datasets necessary to complete the replication. We provide details below.

Access to the IRI supermarket scanner data is subject to a data use agreement. Contact Academic.Publication@circana.com for further information. Code is provided to prepare the raw data for analysis. See IRI_CleaningCode.txt.

Once the IRI supermarket scanner data have been accessed, the authors will provide additional
brand-level data, including the American Score, Coalition of the Willing Score, and France/Germany score, required to complete the replication.

Access to the Wesleyan Media Project data is subject to a data use agreement. Visit https://mediaproject.wesleyan.edu/dataaccess/ to access the 2006 advertising data file. Code is provided to prepare the raw data for analysis. See WMP_CleaningCode.R.

*******************
** List of Files **
*******************

This replication archive contains the following files:

*************
* Documents *
*************

1. Readme.txt: this Readme file.
2. Codebook.pdf: a .pdf that describes all data sources and variables used in the article.

************
* Datasets *
************

1. county_dataset.csv: County dataset containing all publicly available county-level and DMA-level variables, including varies measures of casualties, population, and 2000 Bush vote share.
2. zip_dataset.csv: ZIP code dataset containing all publicly available ZIP code-level variables, including enlistment and Zillow housing index.

***********
* Scripts *
***********

1. ReplicationCode.R: an .R script that replicates all empirical analysis in the main text and Supplemental Information.
2. IRI_CleaningCode.txt: a SAS script that prepares the raw IRI supermarket scanner data for merging and analysis.
3. WMP_CleaningCode.R: an .R script that prepares the raw Wesleyan Media Project advertising data for merging and analysis.